package com.hongxun.project.assets.iLine.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hongxun.framework.web.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 低压线路表 i_line
 *
 * @author hongxun
 * @date 2019-03-19
 */
public class ILine extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**  */
    private String id;
    /**  */
    private String name;
    /**
     * 运行编号
     */
    private String runCode;
    /**
     * 线路类型
     */
    private String lineType;
    /**
     * 电压等级
     */
    private String voltage;
    /**
     * 线路总长度
     */
    private BigDecimal totalSpan;
    /**
     * 架空线路总长度
     */
    private BigDecimal overSpan;
    /**
     * 电缆总长度
     */
    private BigDecimal cableSpan;
    /**
     * 变压器ID
     */
    private String byqId;
    /**
     *  变压器名称
     */
    private String byqName;
    /**
     * 上级线路ID
     */
    private String upLineId;
    /**
     * 上级线路名称
     */
    private String upLineName;
    /**
     * 资产单位
     */
    private String unit;
    /**
     * 运维班组
     */
    private String runTeam;
    /**
     * 创建人
     */
    private Integer addUser;
    /**
     * 创建日期
     */
    private Date addDate;
    /**
     * 最近更新人
     */
    private Integer updateUser;
    /**
     * 最近更新日期
     */
    private Date updateDate;
    /**
     * 数据状态
     */
    private String datastate;

    private BigDecimal sunTotal; // 分属线路长度

    private String newMater;

    private String usersId;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setRunCode(String runCode) {
        this.runCode = runCode;
    }

    public String getRunCode() {
        return runCode;
    }

    public void setLineType(String lineType) {
        this.lineType = lineType;
    }

    public String getLineType() {
        return lineType;
    }

    public void setVoltage(String voltage) {
        this.voltage = voltage;
    }

    public String getVoltage() {
        return voltage;
    }

    public void setTotalSpan(BigDecimal totalSpan) {
        this.totalSpan = totalSpan;
    }

    public BigDecimal getTotalSpan() {
        return totalSpan;
    }

    public void setOverSpan(BigDecimal overSpan) {
        this.overSpan = overSpan;
    }

    public BigDecimal getOverSpan() {
        return overSpan;
    }

    public void setCableSpan(BigDecimal cableSpan) {
        this.cableSpan = cableSpan;
    }

    public BigDecimal getCableSpan() {
        return cableSpan;
    }

    public void setByqId(String byqId) {
        this.byqId = byqId;
    }

    public String getByqId() {
        return byqId;
    }

    public void setUpLineId(String upLineId) {
        this.upLineId = upLineId;
    }

    public String getUpLineId() {
        return upLineId;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getUnit() {
        return unit;
    }

    public void setRunTeam(String runTeam) {
        this.runTeam = runTeam;
    }

    public String getRunTeam() {
        return runTeam;
    }

    public void setAddUser(Integer addUser) {
        this.addUser = addUser;
    }

    public Integer getAddUser() {
        return addUser;
    }

    public void setAddDate(Date addDate) {
        this.addDate = addDate;
    }

    public Date getAddDate() {
        return addDate;
    }

    public void setUpdateUser(Integer updateUser) {
        this.updateUser = updateUser;
    }

    public Integer getUpdateUser() {
        return updateUser;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setDatastate(String datastate) {
        this.datastate = datastate;
    }

    public String getDatastate() {
        return datastate;
    }

    public String getByqName() {
        return byqName;
    }

    public void setByqName(String byqName) {
        this.byqName = byqName;
    }

    public String getUpLineName() {
        return upLineName;
    }

    public void setUpLineName(String upLineName) {
        this.upLineName = upLineName;
    }

    public BigDecimal getSunTotal() {
        return sunTotal;
    }

    public void setSunTotal(BigDecimal sunTotal) {
        this.sunTotal = sunTotal;
    }

    public String getNewMater() {
        return newMater;
    }

    public void setNewMater(String newMater) {
        this.newMater = newMater;
    }

    public String getUsersId() {
        return usersId;
    }

    public void setUsersId(String usersId) {
        this.usersId = usersId;
    }

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("runCode", getRunCode())
                .append("lineType", getLineType())
                .append("voltage", getVoltage())
                .append("totalSpan", getTotalSpan())
                .append("overSpan", getOverSpan())
                .append("cableSpan", getCableSpan())
                .append("byqId", getByqId())
                .append("upLineId", getUpLineId())
                .append("unit", getUnit())
                .append("runTeam", getRunTeam())
                .append("addUser", getAddUser())
                .append("addDate", getAddDate())
                .append("updateUser", getUpdateUser())
                .append("updateDate", getUpdateDate())
                .append("datastate", getDatastate())
                .toString();
    }
}
